package org.javaboy.profile.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class WebConfig {

    @Bean
    @Profile("dev")
    DataSource devDs() {
        System.out.println("devDs");
        return new DataSource();
    }
    @Bean
    @Profile("prod")
    DataSource prodDs() {
        System.out.println("prodDs");
        return new DataSource();
    }
}
